<%@ taglib prefix="uthink" uri="/WEB-INF/tld/shiros.tld"%>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
<link href="lib/Hui-iconfont/1.0.6/iconfont.css" rel="stylesheet"
	type="text/css" />
<link href="lib/webuploader/0.1.5/webuploader.css" rel="stylesheet"
	type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title></title>
</head>
<body>
	<div class="pd-20">
		<form id="dataform" class="form form-horizontal">
			<input type="hidden" name="id" value='${mediadetail.id}' />
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">基本信息</label>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">媒体属性：</label>
				<div class="formControls col-xs-8 col-sm-5">${mediadetail.media_property}</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">头条号名称：</label>
				<div class="formControls col-xs-8 col-sm-5">${mediadetail.media_title}</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">头条号介绍：</label>
				<div class="formControls col-xs-8 col-sm-5">
					<textarea class="textarea" placeholder="" readonly="readonly"
						name="media_desc">${mediadetail.media_desc}</textarea>
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">头条号头像：</label>
				<div class="formControls col-xs-8 col-sm-5">
					<img width="100" height="100"
						src="${mediadetail.media_header}" />
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">辅助材料：</label>
				<div class="formControls col-xs-8 col-sm-5">${mediadetail.material}</div>
			</div>

			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">组织名称：</label>
				<div class="formControls col-xs-8 col-sm-5">${mediadetail.org_name}</div>
			</div>

			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">组织机构代码：</label>
				<div class="formControls col-xs-8 col-sm-5">${mediadetail.org_code}</div>
			</div>

			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">确认书扫描件图：</label>
				<div class="formControls col-xs-8 col-sm-5">
					<img width="100" height="100"
						src="${mediadetail.letter_scan}" />
				</div>
			</div>

			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">网站：</label>
				<div class="formControls col-xs-8 col-sm-5">${mediadetail.web_url}</div>
			</div>

			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">媒体地址：</label>
				<div class="formControls col-xs-8 col-sm-5">${mediadetail.media_url}</div>
			</div>

			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">所有地：</label>
				<div class="formControls col-xs-8 col-sm-5">${mediadetail.address}</div>
			</div>

			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">领域：</label>
				<div class="formControls col-xs-8 col-sm-5">${mediadetail.field}</div>
			</div>

			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">媒体联络人：</label>
				<div class="formControls col-xs-8 col-sm-5">${mediadetail.connector}</div>
			</div>

			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">身份岗位：</label>
				<div class="formControls col-xs-8 col-sm-5">${mediadetail.station}</div>
			</div>

			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">手机号：</label>
				<div class="formControls col-xs-8 col-sm-5">${mediadetail.mobile}</div>
			</div>

			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">联系邮箱：</label>
				<div class="formControls col-xs-8 col-sm-5">${mediadetail.email}</div>
			</div>

			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">联络人身份号：</label>
				<div class="formControls col-xs-8 col-sm-5">${mediadetail.connector_id}</div>
			</div>

			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">证件正面图片：</label>
				<div class="formControls col-xs-8 col-sm-5">
					<img width="100" height="100"
						src="${mediadetail.connector_front}" />
				</div>
			</div>

			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">证件背面图片：</label>
				<div class="formControls col-xs-8 col-sm-5">
					<img width="100" height="100"
						src="${mediadetail.connector_back}" />
				</div>
			</div>

			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">审核状态：</label>
				<div class="formControls col-xs-8 col-sm-5">
					<c:choose>
						<c:when test="${mediadetail.status == 0}">
						待审核
					</c:when>
						<c:when test="${mediadetail.status == 1}">
						已通过
					</c:when>
						<c:when test="${mediadetail.status == 2}">
						未通过
					</c:when>
					</c:choose>
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">申请时间：</label>
				<div class="formControls col-xs-8 col-sm-5">${mediadetail.apply_time}</div>
			</div>

			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">审核信息</label>
			</div>

			<c:choose>
				<c:when test="${mediadetail.status == 0}">
					<div class="row cl">
						<label class="form-label col-xs-4 col-sm-3">审核操作：</label>
						<div class="formControls col-xs-8 col-sm-5">
							<select name="status">
								<option value="1">通过</option>
								<option value="2">驳回</option>
							</select>
						</div>
					</div>
					<div class="row cl">
						<label class="form-label col-xs-4 col-sm-3">审核意见：</label>
						<div class="formControls col-xs-8 col-sm-5">
							<textarea class="textarea" placeholder="" name="reason"
								onkeyup="$.Huitextarealength(this,500)"></textarea>
						</div>
					</div>

					<div class="row cl">
						<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
							<a class="btn btn-warning" onclick="save()"
								href="javascript:void(0);" title="提交">提交</a>
						</div>
					</div>
				</c:when>
				<c:otherwise>
					<div class="row cl">
						<label class="form-label col-xs-4 col-sm-3">审核意见：</label>
						<div class="formControls col-xs-8 col-sm-5">
							<textarea class="textarea" placeholder="" readonly="readonly"
								name="reason">${mediadetail.reason}</textarea>
						</div>
					</div>
					<div class="row cl">
						<label class="form-label col-xs-4 col-sm-3">审核时间：</label>
						<div class="formControls col-xs-8 col-sm-5">${mediadetail.update_time}</div>
					</div>
					<div class="row cl">
						<label class="form-label col-xs-4 col-sm-3">审核人：</label>
						<div class="formControls col-xs-8 col-sm-5">${mediadetail.apply_uname}</div>
					</div>
				</c:otherwise>
			</c:choose>

		</form>
	</div>
	<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>
	<script type="text/javascript" src="lib/layer/2.1/layer.js"></script>
	<script type="text/javascript" src="lib/My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript" src="lib/icheck/jquery.icheck.min.js"></script>
	<script type="text/javascript"
		src="lib/Validform/5.3.2/Validform.min.js"></script>
	<script type="text/javascript"
		src="lib/webuploader/0.1.5/webuploader.min.js"></script>
	<script type="text/javascript"
		src="lib/ueditor/1.4.3/ueditor.config.js"></script>
	<script type="text/javascript"
		src="lib/ueditor/1.4.3/ueditor.all.min.js"></script>
	<script type="text/javascript"
		src="lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
	<script type="text/javascript" src="js/H-ui.js"></script>
	<script type="text/javascript" src="js/H-ui.admin.js"></script>
	<script type="text/javascript">
		function save() {
			$.ajax({
				type:"post",
				url: "<%=basePath%>backstage/validate_member_media",
				data : $("#dataform").serialize(),
				success : function(msg) {
					var info = eval('(' + msg + ')');
					if (info.code == "0000") {
						window.parent.location.reload();
						var index = parent.layer.getFrameIndex(window.name);
						parent.layer.close(index);
					} else {
						alert("操作失败");
					}
				}
			})
		}
	</script>
</body>
</html>

